package hlp.dao;

import hlp.hibernateUtils.HibernateUtil;
import hlp.model.Post;

import java.util.List;

import org.hibernate.Query;

public class PostDao extends BaseDao<Post,Long> {
		
	public List<Post> getPosts(){
		Query q = HibernateUtil.currentSession().createQuery("from " + Post.class.getName());
		return q.list();
	}
}
